@extends('layout.layout')
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
<div>
<h1>队员展示</h1>

</div>

	<table class="table table-hover" style="margin-top: 50px">
  	<tr>
  		<th>ID</th>
  		<th>队员名称</th>
      <th>所属分组</th>
  		<th>操作</th>
  	</tr>
  	@foreach($data as $v)
  	<tr>
  		<td>{{$v->player_id}}</td>
  		<td>{{$v->player_name}}</td>
      <td>{{$v->team_group}}</td>
  		<td><button class="btn btn-success"><a href="#">编辑</a></button>
  			<button class="btn btn-danger"><a href="#">删除</a></button>			
  		</td>
  	</tr>
  	@endforeach
	</table> 
  {{$data->links()}}
   <button class="btn btn-success"><a href="{{url('admin/teamIndex')}}">返回</a></button>
</body>
</html>
